package com.ruoyi.web.mapper.devicedata;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.web.domain.devicedata.DevicePhoto;
import com.ruoyi.web.pojo.request.devicedata.DevicePhotoRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备图片表 Mapper 接口
 *
 * @author fwx
 * @since 2024-01-24 10:46:59
 */
@Mapper
@DataSource(value = DataSourceType.SLAVE)
public interface DevicePhotoMapper extends BaseMapper<DevicePhoto> {

    /**
     * @desc  根据图片id查询
     * @author fwx 2024/1/24 17:21
     **/
    public List<DevicePhoto> getByPhotoIds(@Param("photoIds") List<Long> photoIds,@Param("deviceId") String deviceId);

    /**
     * @desc  分页查询图片
     * @author fwx 2024/1/25 13:48
     **/
    public List<DevicePhoto> getPhotosPage(@Param("request")DevicePhotoRequest request);

}
